/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PD.data.impl.peaklists;

import PD.data.Row;

/**
 *
 * @author scsandra
 */
public class SimpleEdgeRow implements Row {

        int ID, sourceVertexID, targetVertexID;
        double weight;
        String direction, sourceDB;

        public int getID() {
                return ID;
        }

        public void setID(int id) {
                this.ID = id;
        }

        public int getSourceVertexID() {
                return this.sourceVertexID;
        }

        public int getTargetVertexID() {
                return this.targetVertexID;
        }

        public double getWeight() {
                return this.weight;
        }

        public String getDirection() {
                return this.direction;
        }

        public int getLowerBound() {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public int getUpperBound() {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public String getVertexType() {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public String getSWISSprotID() {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public String getKEGGCompoundID() {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public String getTransPathCompoundID() {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public String getSourceDatabases() {
                return this.sourceDB;
        }

        public void setSourceVertexID(int sourceID) {
                this.sourceVertexID = sourceID;
        }

        public void setTargetVertexID(int targetID) {
                this.targetVertexID = targetID;
        }

        public void setWeight(double weight) {
                this.weight = weight;
        }

        public void setDirection(String direction) {
                this.direction = direction;
        }

        public void setSourceDatabases(String sourceDB) {
                this.sourceDB = sourceDB;
        }

        public void setLowerBound(int lowerBound) {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public void setUpperBound(int upperBound) {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public void setVertexType(String vertexType) {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public void setSWISSprotID(String SWISSprotID) {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public void setKEGGCompoundID(String KEGGCompoundID) {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        public void setTransPathCompoundID(String transPathCompoundID) {
                throw new UnsupportedOperationException("Not supported yet.");
        }

        @Override
        public Row clone() {
                SimpleEdgeRow newRow = new SimpleEdgeRow();
                newRow.setID(this.getID());
                newRow.setSourceVertexID(this.getSourceVertexID());
                newRow.setTargetVertexID(this.getTargetVertexID());
                newRow.setWeight(this.getWeight());
                newRow.setDirection(this.getDirection());
                newRow.setSourceDatabases(this.getSourceDatabases());
                return newRow;
        }

        @Override
        public String toString(){
                 return "\n\tedge [\n\t\tsource " +getSourceVertexID() + "\n\t\ttarget " + getTargetVertexID() + "\n\t\tlabel "
                                        + "\"" + getID() + " - " + getWeight() + "\"" + "\n\t]";
        }
}
